/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Models;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;

/**
 *
 * @author Cham to tet
 */
@ManagedBean(name="driverBean")
@RequestScoped
public class Drivers {
    int id;
    String name, contactPerson, address, city, mobile;
    String telephone, experience, description;
    String email, password;
    boolean status;
    Drivers driver;

    public Drivers getDriver() {
        return driver;
    }

    public void setDriver(Drivers driver) {
        this.driver = driver;
    }
    
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public boolean isStatus() {
        return status;
    }

    public void setStatus(boolean status) {
        this.status = status;
    }
    
    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getContactPerson() {
        return contactPerson;
    }

    public void setContactPerson(String contactPerson) {
        this.contactPerson = contactPerson;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getExperience() {
        return experience;
    }

    public void setExperience(String experience) {
        this.experience = experience;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public Drivers(int id, String name, String contactPerson, String address, String city, String mobile, String telephone, String experience, String description, boolean status) {
        this.id = id;
        this.name = name;
        this.contactPerson = contactPerson;
        this.address = address;
        this.city = city;
        this.mobile = mobile;
        this.telephone = telephone;
        this.experience = experience;
        this.description = description;
        this.status = status;
    }

    public void edit(Drivers dr){
        this.name = dr.name;
        this.contactPerson = dr.contactPerson;
        this.address = dr.address;
        this.city = dr.city;
        this.mobile = dr.mobile;
        this.telephone = dr.telephone;
        this.experience = dr.experience;
        this.description = dr.description;
        this.status=dr.status;
        this.id = dr.id;
    }
    public Drivers() {
    }                  
}
